package org.codeart.broker.example02;

public class Client {

    public static void main(String[] args) {
        MediatorStructure mediator = new MediatorStructure();
        HouseOwner houseOwner = new HouseOwner("洛必达", mediator);
        Tenant tenant = new Tenant("曹操", mediator);
        // 收集信息
        mediator.setHouseOwner(houseOwner);
        mediator.setTenant(tenant);
        tenant.contact("我要租房, 每月不超过 2000 元");
        houseOwner.contact("你好我这里有吉房出租");
    }

}
